import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ChatTabBar extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.centerLeft,
      child: Theme(
        data: ThemeData(
          tabBarTheme: TabBarTheme(
            labelPadding:
                EdgeInsets.symmetric(horizontal: 30.w, vertical: 10.h),
            tabAlignment: TabAlignment.start,
          ),
        ),
        child: TabBar(
          isScrollable: true,
          indicatorWeight: 4.h,
          indicatorSize: TabBarIndicatorSize.label,
          indicatorColor: const Color(0xFFFF3034),
          labelColor: Colors.white,
          unselectedLabelColor: Colors.grey,
          labelStyle: TextStyle(
            fontSize: 32.sp,
            fontWeight: FontWeight.bold,
          ),
          unselectedLabelStyle: TextStyle(
            fontSize: 32.sp,
            fontWeight: FontWeight.normal,
          ),
          dividerColor: Colors.transparent,
          // labelPadding: EdgeInsets.symmetric(horizontal: 30.w),
          tabs: const [
            Tab(text: 'Friend'),
            Tab(text: 'Stranger'),
          ],
        ),
      ),
    );
  }
}
